import request from '@/utils/request'

// 查询全年出班天数列表
export function listDays(query) {
  return request({
    url: '/business/days/list',
    method: 'get',
    params: query
  })
}

// 查询全年出班天数详细
export function getDays(id) {
  return request({
    url: '/business/days/' + id,
    method: 'get'
  })
}

// 新增全年出班天数
export function addDays(data) {
  return request({
    url: '/business/days',
    method: 'post',
    data: data
  })
}

// 修改全年出班天数
export function updateDays(data) {
  return request({
    url: '/business/days',
    method: 'put',
    data: data
  })
}

// 删除全年出班天数
export function delDays(id) {
  return request({
    url: '/business/days/' + id,
    method: 'delete'
  })
}
